use serde::{Deserialize, Serialize};
use sqlx::FromRow;
use uuid::Uuid;
#[derive(Debug, Serialize, Deserialize, FromRow)]
pub struct UserPostInfo{
    pub id: Uuid,
    pub favorite: bool,
    pub read: bool
}
impl UserPostInfo{
    pub fn id(&self) -> Uuid {
        self.id
    }
    pub fn favorite (&self) -> bool {
        self.favorite
    }
    pub fn read(&self) -> bool {
        self.read
    }
}